home *** CD-ROM | disk | FTP | other *** search
/ Safarir 3 / SafTV-CD3.iso / pc / Bonus / Dessins Animés / static / jeux / teletub.swf / scripts / DefineButton2_154 / BUTTONCONDACTION on(press).as
Text File  |  2001-11-21  |  737b  |  25 lines

  1. on(press){
  2.    tellTarget("../Actions_Weapons")
  3.    {
  4.       gotoAndStop("FireWeapon");
  5.       play();
  6.    }
  7.    if(eval("/:Weapon") == "1")
  8.    {
  9.       duplicateMovieClip("../Score+10","Score+10" add eval("/:Index"),eval("/:Index") + 16384);
  10.       setProperty("../Score+10" add eval("/:Index"), _X, getProperty("../Cursor", _X));
  11.       setProperty("../Score+10" add eval("/:Index"), _Y, getProperty("../Cursor", _Y) - "150");
  12.       tellTarget("../Score+10" add eval("/:Index"))
  13.       {
  14.          gotoAndPlay(2);
  15.       }
  16.       set("/:Index",eval("/:Index") + "1");
  17.       set("/:Score",eval("/:Score") + "10");
  18.       tellTarget("../Sounds_Announcer")
  19.       {
  20.          gotoAndPlay(2);
  21.       }
  22.       gotoAndPlay(66);
  23.    }
  24. }
  25.